Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     rid2d                 = GetComponent <Rigidbody2D>();
     animator              = GetComponent <Animator>();
     weaponPoint           = GetComponentInChildren <WeaponPoint>();
     isOutControl          = false;
     playerStateController = GetComponentInChildren <PlayerStateController>();
 }
Ejemplo n.º 2
0
 public void ViewWeapon(bool bView, bool bEffect)
 {
     //무기 보이기
     if (m_SelectChar != null)
     {
         WeaponPoint Point = m_SelectChar.GetComponent <WeaponPoint>();
         Point.enabled = bView;
         Point.WeaponView(bView);
         Point.ViewEffect(bEffect);
     }
 }
Ejemplo n.º 3
0
    protected void Awake()
    {
        sRender       = GetComponent <SpriteRenderer>();
        animator      = GetComponent <Animator>();
        impulseSource = GetComponent <CinemachineImpulseSource>();

        attackTimer = attackInterval;
        canAttack   = true;

        weaponPoint = GameObject.FindGameObjectWithTag("WeaponPoint").GetComponent <WeaponPoint>();
        player      = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();

        powerController = GameObject.FindGameObjectWithTag("UI_PowerBar").GetComponent <PowerController>();
        if (castor == null)
        {
            castor = GameObject.FindGameObjectWithTag("PlayerStateController").GetComponent <PlayerStateController>();
        }
    }