コード例 #1
0
 // Start is called before the first frame update
 void Awake()
 {
     rb               = GetComponent <Rigidbody>();
     mover            = GetComponent <MoveTowardsPoint>();
     seekingBehaviour = GetComponent <OrderAgentSeeking>();
     dyingBehaviour   = GetComponent <OrderAgentDying>();
 }
コード例 #2
0
 // Start is called before the first frame update
 void Awake()
 {
     rb                 = GetComponent <Rigidbody>();
     mover              = GetComponent <MoveTowardsPoint>();
     dyingBehaviour     = GetComponent <OrderAgentDying>();
     returningBehaviour = GetComponent <OrderAgentReturning>();
     scaler             = GetComponent <AgentScaler>();
     audioSource        = GetComponent <AudioSource>();
 }