void Start()
    {
        myRB         = GetComponent <Rigidbody>();
        mobilePrefab = GameObject.FindGameObjectWithTag("Joystick");
        mobileJoy    = GameObject.FindGameObjectWithTag("Joystick").GetComponent <MobileJoystick>();
        anim         = GetComponent <Animator>();

        spawner = GameObject.FindGameObjectWithTag("Spawner").GetComponent <SharkSpawning>();
    }
Exemplo n.º 2
0
 void Start()
 {
     sharkRB    = GetComponent <Rigidbody>();
     player     = GameObject.FindGameObjectWithTag("Player");
     spawn      = GameObject.FindGameObjectWithTag("Spawner").GetComponent <SharkSpawning>();
     anim       = GetComponent <Animator>();
     playerAnim = GameObject.FindGameObjectWithTag("Player").GetComponent <Animator>();
     particle   = GameObject.FindGameObjectWithTag("Particle");
 }