Пример #1
0
 // Use this for initialization
 void Start()
 {
     G    = GameObject.Find("Ganon").GetComponent <Ganon_Enemy_Manager>();
     Link = GameObject.Find("Player").GetComponent <Character>();
     FireBallRigidBody = GetComponent <Rigidbody2D>();
     CurrentDirection  = FindDirectionOfLink();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     Boss         = GameObject.Find("Ganon");
     GEM          = Boss.GetComponent <Ganon_Enemy_Manager>();
     MainCamera   = GameObject.Find("Main Camera").GetComponent <CameraFollow>();
     Player       = GameObject.Find("Player");
     PM           = Player.GetComponent <Player_Manager>();
     BossText     = GameObject.Find("BossText");
     BossTextText = BossText.GetComponent <Text>();
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     SpearAlreadyHitPlayer = false;
     Ganon                = GameObject.Find("Ganon").GetComponent <Character>();
     SpearRigidBody       = GetComponent <Rigidbody2D>();
     Link                 = GameObject.Find("Player").GetComponent <Character>();
     SpearThrownStartTime = Time.time;
     CurrentDirection     = FindDirectionOfLink();
     GanonEnemyManger     = GameObject.FindGameObjectWithTag("Ganon").GetComponent <Ganon_Enemy_Manager>();
     StartTime            = Time.time;
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     anim = GetComponent <Animator>();
     Link = GameObject.Find("Player").GetComponent <Character>();
     G    = GameObject.Find("Ganon").GetComponent <Ganon_Enemy_Manager>();
 }