コード例 #1
0
    void Awake()
    {
        _Animator = GameObject.FindObjectOfType <AnimationRelay>();
        _Player   = GameObject.FindObjectOfType <Player>();
        _Ball     = GameObject.FindObjectOfType <Ball>();

        _Start.onClick.AddListener(StartGame);
    }
コード例 #2
0
ファイル: Player.cs プロジェクト: wtmk-dev/game-off-2020
    private void Awake()
    {
        _GameData          = new GameData();
        _GameData.Strength = 15;
        _GameData.Agility  = 75;

        CurrentState = PlayerState.Idel;

        _Animator = GetComponent <AnimationRelay>();

        IsActive = false;
    }