예제 #1
0
    // show hero and button skill;
    public void InitDataShowHeroAndButton()
    {
#if TEST
        Debug.LogWarning(Debugs.ColorString("InitDataShowHeroAndButton", Color.red));
#endif
        if (_showHeroAndButton == null)
        {
            _showHeroAndButton       = SpawnShowHero();;
            bOL_PlaySkill_Controller = _showHeroAndButton.GetComponent <BOL_PlaySkill_Controller>();
            bOL_PlaySkill_Controller.InitData();
        }
        //else {
        //  bOL_PlaySkill_Controller = _showHeroAndButton.GetComponent<BOL_PlaySkill_Controller>();
        //  bOL_PlaySkill_Controller.Initdata();
        //}
        chairLeft  = GameObject.FindWithTag("PlayerLeft");
        chairRight = GameObject.FindWithTag("PlayerRight");
        bOL_PlaySkill_Controller.SetActivePanel(false);
    }
 public override void SelfDestruction()
 {
     ins = null;
     base.SelfDestruction();
 }
 void OnDestroy()
 {
     StopAllCoroutines();
     ins = null;
 }
 void Awake()
 {
     ins = this;
 }