//private SpriteRenderer _renderer; private void Awake() { _rb = GetComponent <Rigidbody2D>(); player = GameObject.Find("Player").GetComponent <PlayerJoystick>(); bazookaInst = GameObject.Find("bazokav2_0").GetComponent <BazookaJoystick>(); _animatorplayer = GameObject.Find("Player").GetComponent <Animator>(); _smokepoint = transform.Find("SmokeEffect"); joystick = GameObject.Find("Fixed Joystick").GetComponent <FixedJoystick>(); _firepoint = GameObject.Find("Player").GetComponent <Transform>(); //_renderer = GameObject.Find("bazokav2_0").GetComponent<SpriteRenderer>(); }
void Start() { playerMove = GameObject.Find("Player").GetComponent <PlayerJoystick>(); }
private void Awake() { _firePoint = transform.Find("FirePoint"); player = GameObject.Find("Player").GetComponent <PlayerJoystick>(); }
void Awake() { playerJoystick = GameObject.Find("Player").GetComponent <PlayerJoystick>(); }
// Start is called before the first frame update void Start() { //platformGround = GetComponentsInChildren<BoxCollider2D>(); _rb = GetComponent <Rigidbody2D>(); PJoystick = GetComponent <PlayerJoystick>(); }
// Use this for initialization void Start() { playerJoystick = GameObject.Find("playerA").GetComponent <PlayerJoystick>(); }
private void Start() { pStick = player.GetComponent <PlayerJoystick>(); aStick = gun.GetComponent <AttackJoystick>(); }