예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     OBJ_POOLER = ObjectPoolController.SharedInstance;
     OBJ_POOLER.CreateObjPool(PLAYER_PROJECTILE_POOL_NAME, bulletPrefabs[0], true);
     _EC.SetVelocityFunctions(OverrideVelocities, CompoundVelocities, MultiplyVelocities);
     _EC.SetEventFunctions(OnLanding, WhileInAir);
     jumps      = maxJumps;
     dashAction = gameObject.AddComponent <ActionTimer>();
     dashAction.Init(null, EndDash, dashTime, dashCooldown, 0f);
     attackAction = gameObject.AddComponent <ActionTimer>();
     attackAction.Init(null, null, 0f, 0f, 0f);
     swingHitbox.SetActive(false);
     heatUIEffect.SetMax(maxHeat);
     _EC.faction = FactionList.PLAYER;
 }