Пример #1
0
    private void Awake()
    {
        //iEDelegate = BulletController.Instance.FireRandom;
        int r = Random.Range(0, 2);

        switch (r)
        {
        case 0:
            iEDelegate = BulletController.Instance.FireRound;
            break;

        case 1:
            iEDelegate = BulletController.Instance.FireArc;
            break;

        default:
            iEDelegate = null;
            break;
        }
    }
Пример #2
0
 private void Awake()
 {
     iEDelegate = BulletController.Instance.FireRandom;
 }