コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: Golem.cs プロジェクト: hirama-akihiro/StealAdventer
 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>();
 }
コード例 #3
0
ファイル: Bruce.cs プロジェクト: hirama-akihiro/StealAdventer
 // 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>();
 }