void Awake()
    {
        context = DanmakuController.Instance.GetContext("MyContext");

        // register creation/destruction-delegates
        context.EmitterCreationHandler    = CreateEmitter;
        context.EmitterDestructionHandler = DestroyEmitter;
    }
    void AwakeOrSpawned()
    {
        context = DanmakuController.Instance.GetContext("PlayerContext");

        // register creation/destruction-delegates
        context.BulletCreationHandler = CreateBullet;
        context.BulletDestructionHandler = DestroyBullet;
    }
Beispiel #3
0
    void AwakeOrSpawned()
    {
        context = DanmakuController.Instance.GetContext(contextName);


        context.GetVariable(varName);


        // register creation/destruction-delegates
        context.BulletCreationHandler     = CreateBullet;
        context.BulletDestructionHandler  = DestroyBullet;
        context.EmitterCreationHandler    = CreateEmitter;
        context.EmitterDestructionHandler = DestroyEmitter;
    }
 private void AwakeOrSpawned()
 {
     _transform = transform;
     _context   = DanmakuController.Instance.GetContext("Player");
 }
Beispiel #5
0
 private void Start()
 {
     context = origin.Context;
 }