示例#1
0
    private void Awake()
    {
        Animator       = GetComponentInChildren <Animator>();
        EffectTools    = GetComponent <EffectTools>();
        Dispatcher     = GetComponent <PlayerDispatcher>();
        PlayerDropkick = GetComponent <PlayerDropkick>();

        if (_players == null)
        {
            _players = new List <Player>();
        }

        if (!_players.Contains(this))
        {
            _players.Add(this);
        }
    }
示例#2
0
 public DropkickEvent(PlayerDropkick player, string name, EventDispatcher dispatcher) : base(name, dispatcher)
 {
     Player = player;
 }