Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        randomWalking         = new ScaryCuboidMoveController(gameObject, Speed, 0.1f);
        followPlayerMovement  = new FollowMoveController(gameObject, Speed);
        currentMoveController = randomWalking;
        moveSwitchModeTimer   = changeMoveModeStartTimer;

        attackManager = GetComponent <CuboidAttackManager>();
    }
Beispiel #2
0
 // Start is called before the first frame update
 public override void AttStart()
 {
     if (isServer)
     {
         moveCtrl = new ScaryCuboidMoveController(gameObject, moveSpeedDuringAttack, 0.1f);
     }
     // If we have 20 bullets per tick, then we have 20 / timeToNext bullets per second
     // And we want to have bullets for at least bulletLifeTime seconds
     arrCapacity = System.Convert.ToInt16(averageBulletCount / timeToNext) * bulletLifeTime;
     bullets     = new ExtremeBaddyProj[arrCapacity];
     TTNLeft     = timeToNext;
 }