예제 #1
0
파일: HelpText.cs 프로젝트: yabos/BattleHit
 // Use this for initialization
 void Start()
 {
     m_player = FindObjectOfType<PlayerController>();
     m_helpTextRenderer = TextObj.GetComponent<Renderer>();
 }
예제 #2
0
 public void UndoDontDestroyOnLoad()
 {
     s_instance = null;
 }
예제 #3
0
 protected override void Start()
 {
     base.Start();
     m_playerCtrl = GameObject.FindObjectOfType<PlayerController>();
     phyChar = GetComponent<PhysicCharBehaviour>();
 }
예제 #4
0
 void Awake()
 {
     if(s_instance == null)
     {
         DontDestroyOnLoad(gameObject);
         s_instance = this;
     }
     else
     {
         DestroyImmediate(gameObject);
     }
 }