Exemplo n.º 1
0
 void Start()
 {
     rgbody2D  = GetComponent <Rigidbody2D>();
     spawnNode = this.gameObject.transform.Find("spawnNode").gameObject.GetComponent <Transform>();
     gcScript  = GameObject.Find("GameController").GetComponent <gameControllerScriptNew>();
     awayTime  = 1f;
     hScript   = this.gameObject.GetComponent <healthScript>();
 }
Exemplo n.º 2
0
 private void Awake()
 {
     canFireArrow = false;
     canPlace     = false;
     pScript      = GetComponent <playerScript>();
     gcScript     = GameObject.Find("GameController").GetComponent <gameControllerScriptNew>();
     // aimArrow = GameObject.Find("playerPuck/puckSprite/aimArrow");
     // aimArrowNode = GameObject.Find("playerPuck/puckSprite/aimArrow/spawnNode");
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     rgbody2D   = GetComponent <Rigidbody2D>();
     spriteRen  = this.gameObject.transform.Find("puckSprite/characterSprite").GetComponent <SpriteRenderer>();
     gcScript   = GameObject.Find("GameController").GetComponent <gameControllerScriptNew>();
     actionUI   = GameObject.Find("actionUIHolder");
     playerObjs = GameObject.FindGameObjectsWithTag("Player");
     aimArrow   = this.gameObject.transform.Find("puckSprite/aimArrow").gameObject;
     actionUI.SetActive(false);
     isSelected = false;
 }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     rgbody2D = GetComponent <Rigidbody2D>();
     gcScript = GameObject.Find("GameController").GetComponent <gameControllerScriptNew>();
     hScript  = GetComponent <healthScript>();
 }