protected override void Awake() { base.Awake(); skillGeneratePoint = GetComponent<SkillGeneratePointScript>(); status = GetComponent<CharacterStatus>(); status.NowAngle = CharacterStatus.CharacterAngle.Right; status.NowState = (int)CharacterState.Idling; coolTimeImage = coolTimeRateObject.GetComponent<Image>(); myAnimator = GetComponent<Animator>(); myRigidbody = GetComponent<Rigidbody>(); isJump = false; isRun = false; IsControllable = true; isMovable = true; }
void Start() { status = GetComponent<CharacterStatus>(); status.NowAngle = CharacterStatus.CharacterAngle.Right; status.NowState = (int)CharacterState.Moving; myAnimation = GetComponent<Animation>(); myRigidBody = GetComponent<Rigidbody> (); capsuleCollider = GetComponent<CapsuleCollider> (); player = GameObject.Find("SDUnityChan"); skillGeneratePoint = GetComponent<SkillGeneratePointScript>(); }
// Use this for initialization void Start() { myAnimation = GetComponent<Animation> (); //myAnimation ["Take 0010"].normalizedTime = stop_s; //anime ["Take 0010"].normalizedSpeed = animeSpeed; status = GetComponent<CharacterStatus>(); status.NowAngle = CharacterStatus.CharacterAngle.Right; status.NowState = (int)CharacterState.Idling; myRigidBody = GetComponent<Rigidbody> (); capsuleCollider = GetComponent<CapsuleCollider> (); player = GameObject.Find("SDUnityChan"); skillGeneratePoint = GetComponent<SkillGeneratePointScript>(); }