protected override void Start() { base.Start(); targetingModel = Model.targetingModel; player = GameObject.FindGameObjectWithTag("Player"); Transform gunObj = transform.Find("EnemyGun"); engine = GetComponent <Rigidbody>(); }
protected override void Start() { base.Start(); if (targetingProvider != null) { IModelHolder <TargetingModel> holder = (IModelHolder <TargetingModel>)targetingProvider; targetingModel = holder.Model; targetingModel.registerTurret(Model); } }