// Use this for initialization void Start() { if (transform.Find("SlideTransform").GetChild(0)) { slide = transform.Find("SlideTransform").GetChild(0).gameObject; } playerObj = GameObject.FindGameObjectWithTag("Player"); shoot = playerObj.GetComponent <Shoot_New>(); player = playerObj.GetComponent <Player_New>(); sprite = slide.GetComponent <SpriteRenderer>(); }
// Update is called once per frame void Update() { if (PlayerObj) { Shoot_New shoot = PlayerObj.GetComponent <Shoot_New>(); if (!shoot.CombineOn && (shoot.SkillReady || shoot.GoldenFinger) && Input.GetButton("YButton")) { animator.Play("Combine"); } else { animator.Play("Empty"); } } }
// Use this for initialization void Start() { shoot = transform.parent.GetComponent <Shoot_New>(); flame = transform.GetChild(0).gameObject; }
// Use this for initialization void Start() { AmmoNum = GetComponent <Text>(); playerShoot = GameObject.FindWithTag("Player").GetComponent <Shoot_New>(); }
// Use this for initialization void Start() { shoot = GetComponent <Shoot_New>(); player = GetComponent <Player_New>(); }