コード例 #1
0
 void Start()
 {
     anim       = GetComponent <Animator>();
     timeScaler = GetComponent <TimeScaler2d>();
     faction    = GetComponent <HealthSystem>().faction;
 }
コード例 #2
0
 void Start()
 {
     cooldownTimer = 0.0f;
     faction       = GetComponentInParent <HealthSystem>().faction;
 }