Exemplo n.º 1
0
    public void Init(int p)
    {
        PlayerNumber = p;

        m_SmartPlatformController = GetComponent <SmartPlatformController>();
        m_SmartPlatformController.Init(p);

        m_PlayerControl = GetComponent <PlayerControl>();
        m_PlayerControl.Init(p);
    }
Exemplo n.º 2
0
    public void Init(ePlayerType type, int psIndex)
    {
        PlayerType = type;

        m_SmartPlatformController = GetComponent <SmartPlatformController>();
        m_SmartPlatformController.Init(psIndex);

        m_PlayerControl = GetComponent <PlayerControl>();
        m_PlayerControl.Init(psIndex);

        if (PlayerType == ePlayerType.Boss)
        {
            StartCoroutine(ShowTalk(0));
        }

        initByPlayerType(type);
    }