コード例 #1
0
 private void Awake()
 {
     ABPos = transform.Find("ABPos");
     BCPos = transform.Find("BCPos");
     t     = 0f;
     //Assign stats
     ProjectileMovementSpeed = projectileMovementSpeed;
     MinDistanceToDealDamage = minDistanceToDealDamage;
     projectileIsFired       = false;
     DealsSplashDamage       = dealsSplashDamageByDefault;
     localSplashDamage       = GetComponent <scrSplashDamage>(); //Gets the reference
 }
コード例 #2
0
 private void Awake()
 {
     defenderOrCreepStats   = GetComponentInParent <scrCreepTypeDefiner>().CreepType; //Get the "creepType" from the stats on the gameobject
     localSplashDamageClass = GetComponentInParent <scrSplashDamage>();               //Gets the reference
     UnitDealsSplashDamage  = false;
 }