Пример #1
0
 // Use this for initialization
 void Start()
 {
     gm       = GoToGM.Instance.lgm;
     speed    = 0.01f;
     accSpeed = 3;
     approach = 3f;
 }
Пример #2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag != "player")
     {
         return;
     }
     if (type == "gun")
     {
         gm = GoToGM.Instance.lgm;
         SetGunItemName();
         tx.transform.parent.gameObject.SetActive(true);
     }
 }
Пример #3
0
 public void Initialization(LevelGameManager _gm, Action <bool> callback)
 {
     gm = _gm;
     InInitialization();
     callback(true);
 }
Пример #4
0
 public void Initialization()
 {
     gm = GoToGM.Instance.lgm;
     SetGun();
 }
Пример #5
0
 public void InLevelGame(GameObject gm)
 {
     location = 1;
     gmObject = gm;
     lgm      = gm.GetComponent <LevelGameManager>();
 }