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 }
private void Awake() { defenderOrCreepStats = GetComponentInParent <scrCreepTypeDefiner>().CreepType; //Get the "creepType" from the stats on the gameobject localSplashDamageClass = GetComponentInParent <scrSplashDamage>(); //Gets the reference UnitDealsSplashDamage = false; }