Exemple #1
0
    IEnumerator CheckForUIElement()
    {
        while (bactUI == null)
        {
            bactUI = GetComponent <BacteriaUI>();

            yield return(null);
        }
    }
Exemple #2
0
    // Use this for initialization
    protected override void Start()
    {
        base.Start();

        m_rigidbody = GetComponent <Rigidbody2D> ();

        bactUI = GetComponent <BacteriaUI> ();
        ai     = GetComponent <ImprovedBacteriaAI>();
    }