Esempio n. 1
0
    /**
     * Called once at start
     */
    protected void BaseStart()
    {
        state          = EBaseState.WaitForShoot;
        shootComponent = GetComponent <Shoot>();

        shootComponent.enabled = false;

        // Starting the coroutine
        waitCoroutine = WaitForShoot();
        StartCoroutine(waitCoroutine);
    }
Esempio n. 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public MyUGUIBase(string prefabName)
 {
     mState               = EBaseState.Idle;
     mPrefabName          = prefabName;
     mIsAssetBundleLoaded = false;
 }
Esempio n. 3
0
    /**
     * Small coroutines to wait the delay before
     * shooting
     */
    private IEnumerator WaitForShoot()
    {
        yield return(new WaitForSeconds(shootDelay));

        state = EBaseState.EnableShootComponent;
    }