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; }
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"); }
private void Start() { context = origin.Context; }