void Start()
 {
     rb2d           = GetComponent <Rigidbody2D>();
     scManager      = GameObject.FindGameObjectWithTag("scManager").GetComponent <SceneManagerScript>();
     player         = GameObject.FindGameObjectWithTag("Player");
     prenableScript = FindObjectOfType <PrenableScript>();
     FindObjectOfType <AudioManager>().Play("MissilePcht");
 }
 void Start()
 {
     rb2d      = GetComponent <Rigidbody2D>();
     scManager = GameObject.FindGameObjectWithTag("scManager").GetComponent <SceneManagerScript>();
     anim      = GetComponent <Animator>();
     pScript   = FindObjectOfType <PrenableScript>();
     Curseur.SetActive(false);
 }
Exemplo n.º 3
0
 void Start()
 {
     pController = FindObjectOfType <PlayerController>();
     pScript     = FindObjectOfType <PrenableScript>();
 }
Exemplo n.º 4
0
 void Start()
 {
     prenableScript = GameObject.FindGameObjectWithTag("PrenableScript").GetComponent <PrenableScript>();
     pController    = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
 }