예제 #1
0
 void Awake()
 {
     player     = gameObject;
     pAttribute = attribute;
     attribute.Set_vel();
     rb    = GetComponent <Rigidbody2D>();
     pMove = transform.GetChild(0).GetComponent <ProcMove>();
     Input.gyro.enabled = true;
     procMove           = transform.GetChild(0).GetComponent <ProcMove>();
 }
예제 #2
0
 private void Start()
 {
     rb   = GetComponent <Rigidbody2D>();
     proc = transform.GetChild(0).GetComponent <ProcMove>();
 }