protected override void Start()
        {
            base.Start();

            targetingModel = Model.targetingModel;

            player = GameObject.FindGameObjectWithTag("Player");
            Transform gunObj = transform.Find("EnemyGun");

            engine = GetComponent <Rigidbody>();
        }
Exemple #2
0
        protected override void Start()
        {
            base.Start();

            if (targetingProvider != null)
            {
                IModelHolder <TargetingModel> holder = (IModelHolder <TargetingModel>)targetingProvider;

                targetingModel = holder.Model;

                targetingModel.registerTurret(Model);
            }
        }