示例#1
0
    //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>();
    }
示例#2
0
 void Start()
 {
     playerMove = GameObject.Find("Player").GetComponent <PlayerJoystick>();
 }
 private void Awake()
 {
     _firePoint = transform.Find("FirePoint");
     player     = GameObject.Find("Player").GetComponent <PlayerJoystick>();
 }
示例#4
0
 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>();
 }
示例#6
0
 // Use this for initialization
 void Start()
 {
     playerJoystick = GameObject.Find("playerA").GetComponent <PlayerJoystick>();
 }
示例#7
0
 private void Start()
 {
     pStick = player.GetComponent <PlayerJoystick>();
     aStick = gun.GetComponent <AttackJoystick>();
 }