コード例 #1
0
    void Start()
    {
        asc      = GetComponent <AgeStateController>();
        animator = asc.FetchAnimatorController();

        currentState = State.isMoving;
        rb           = GetComponent <Rigidbody2D>();
    }
コード例 #2
0
ファイル: TimeKeeper.cs プロジェクト: Jointy87/Old-Man-Baby
 void Start()
 {
     gameTime = gameTimeAtStart;
     asc      = FindObjectOfType <AgeStateController>();
 }
コード例 #3
0
 void Awake()
 {
     rb       = GetComponent <Rigidbody2D>();
     animator = GetComponent <Animator>();
     asc      = FindObjectOfType <AgeStateController>();
 }