コード例 #1
0
    void Start()
    {
        groundCheck = transform.Find("GroundCheck");

        stealth  = GetComponent <StealthComponent>();
        pawn     = GetComponent <APawn>();
        body     = GetComponent <Rigidbody2D>();
        animator = GetComponent <Animator>();
    }
コード例 #2
0
 // Use this for initialization
 protected override void Start()
 {
     stealth = GetComponent <StealthComponent>();
 }