Example #1
0
        // Use this for initialization
        void Start()
        {
            firing = GetComponent <Firing>();

            direction = GetComponent <Direction>();

            lastTime = Time.realtimeSinceStartup;

            firingLastTime = Time.realtimeSinceStartup;
        }
Example #2
0
        // Use this for initialization
        void Start()
        {
            state = State.SEARCH;

            firing = GetComponent <Firing>();

            direction = GetComponent <Direction>();

            visibility = transform.Find("Vision").GetComponent <Visibility>();

            lastTime = Time.realtimeSinceStartup;
        }