Esempio n. 1
0
 public override void Die()
 {
     base.Die();
     redEye = GetComponent <RedEye>();
     redEye.NotAttackEye();
     // Destroy(gameObject);
     GetComponent <BabyController>().SetSleeping();
 }
Esempio n. 2
0
        public RemoteRedEye(string name)
            : base(name)
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            //
            // Initialize the RedEye component
            //
            RedEye.Create(new RedEye.OnRemoteCommand(OnRemoteCommand));
        }
 void Start()
 {
     pcont    = GameObject.Find("unicorn").GetComponent <PlayerController2>();
     myStats  = GetComponent <EnemyStats>();
     patrol   = GetComponent <Patrol2>();
     momDino  = GetComponentInParent <EnemyController>();
     animator = GetComponent <Animator>();
     target   = PlayerManager.instance.player.transform;
     agent    = GetComponent <NavMeshAgent>();
     combat   = GetComponent <CharacterCombat>();
     redEye   = GetComponent <RedEye>();
     //babyDino = GetComponent<EnemyController>();
     targetStats = target.GetComponent <CharacterStats>();
 }