示例#1
0
        private bool isReturn = false;    // Возвращается ли моб назад в область ?

        void Start()
        {
            transformCache = transform;
            //MobsOrganisationSystem.createdMob(transform);
            motor = GetComponent <IMotorLogic>();
            angle = Random.Range(-180f, 180f);
        }
 public void Start()
 {
     motor        = gameObject.GetComponent <IMotorLogic>();
     visible      = gameObject.GetComponent <IVisibleLogic>();
     lastDistance = visible.GetDistanceVisible();
     lastAngle    = visible.GetAngleVisible();
 }