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