MuzzleFlash.Reset C# (CSharp) Method

Reset() public method

public Reset ( ) : void
return void
    public void Reset()
    {
        showTime = -0.1f;
        nearLayer.active = spinLayer.active = false;
    }

Usage Example

    void Start()
    {
        rmData    = GetComponent <RadarManager>();
        rocketHUD = GameObject.Find("fake weapon hud").GetComponent <Image>();;
        rocketHUD.gameObject.SetActive(true);
        SpeedReadout    = GameObject.Find("Speed");
        throttleReadout = GameObject.Find("Throttle");

        if (optionalDangerHeightReadout)
        {
            dangerBaseText = optionalDangerHeightReadout.text;
        }

        mFlash = GetComponent <MuzzleFlash>();
        mFlash.Reset();
        StartCoroutine(rocketSalvoRelease());
        shootableScript    = GetComponent <Shootable>();
        wasHealth          = startHealth = shootableScript.healthLimit;
        UI_ThrottleReadout = throttleReadout.GetComponent <UI_Speed> ();
        UI_SpeedReadout    = SpeedReadout.GetComponent <UI_Speed> ();

        hardpointRef = missionTarget.GetComponentInChildren <HardPointCounter>();

        hardpointMax = hardpointRef.hardpointCount;
    }
All Usage Examples Of MuzzleFlash::Reset