コード例 #1
0
    // Use this for initialization
    void Start()
    {
        _fightMenu = FindObjectOfType<FightMenu>();

        _fightEnemyManager = FindObjectOfType<FightEnemyManager>();

        _fightWorkflow = FindObjectOfType<FightWorkflow>();

        _canvas = transform.GetComponentInChildren<Canvas>().gameObject;
        _backdrop = GameObject.Find("Backdrop").gameObject;

        _moveDetailGameObject = Resources.Load<GameObject>("Prefabs/Battle/MoveDetailChoice");

        ShowChoices(new List<PlayerFightDetailItem> { new PlayerFightDetailItem
        {
            Name = "First", Cost = "1", IconPath = "Battle/MenuIcon/Battle-Flap"
        }, new PlayerFightDetailItem
        {
            Name = "Second", Cost = "1", IconPath = "Battle/MenuIcon/Battle-Peach"
        }, new PlayerFightDetailItem
        {
            Name = "Third", Cost = "1", IconPath = "Battle/MenuIcon/Battle-Peck"
        } });

        Disable();
    }
コード例 #2
0
    // Play intro
    // Set up player, enemies
    //- Show player menu
    //  Moves (image, description)
    //  MoveDetails (image, name, description)
    //  Target (enemy list, validate against which types are attackable)
    //  Animation (target, which move)
    //- Enemy Animation (for each enemy)
    //   Pick what to do
    //   Do Animation
    // Outro


    // PlayerFightWorkflow

    //



    void Start()
    {
        Player = GameObject.Find("BirdSprite");
        _fightMenu = FindObjectOfType<FightMenu>();
        _fightEnemyManager = FindObjectOfType<FightEnemyManager>();
    }