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>(); }
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"); }
// 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; }
// Start is called before the first frame update void Start() { rgbody2D = GetComponent <Rigidbody2D>(); gcScript = GameObject.Find("GameController").GetComponent <gameControllerScriptNew>(); hScript = GetComponent <healthScript>(); }