private void Awake() { vars = ManagerVars.GetManageVars(); EventCenter.AddListener(EventDefine.ShowMainPlane, Show); EventCenter.AddListener(EventDefine.ChangeShopImage, ChangeShopImage); Init(); }
private void Awake() { vars = ManagerVars.GetManageVars(); myBody = GetComponent <Rigidbody2D>(); spriteRenderer = GetComponent <SpriteRenderer>(); EventCenter.AddListener <int>(EventDefine.ChangeSkin, ChangeSkin); }
private void Awake() { vars = ManagerVars.GetManageVars(); spriteRenderer = GetComponent <SpriteRenderer>(); int ranValue = Random.Range(0, vars.bgThemeSpriteList.Count); spriteRenderer.sprite = vars.bgThemeSpriteList[ranValue]; }
/// <summary> /// 初始化 /// </summary> public void Awake() { vars = ManagerVars.GetManageVars(); Instance = this; EventCenter.AddListener(EventDefine.AddDimond, AddDimond); EventCenter.AddListener(EventDefine.AddGameScore, AddGameScore); EventCenter.AddListener(EventDefine.PlayerMove, PlayerMove); InitGameData(); }
private bool isSpawnSpike = false; //是否生成钉子 private void Awake() { vars = ManagerVars.GetManageVars(); EventCenter.AddListener(EventDefine.DecidePath, DecidePath); }
private void Awake() { vars = ManagerVars.GetManageVars(); EventCenter.AddListener(EventDefine.PlayAudio, PlayAudio); }
private void Awake() { Instance = this; vars = ManagerVars.GetManageVars(); Init(); }
private void Awake() { EventCenter.AddListener(EventDefine.ShowShopPlane, Show); vars = ManagerVars.GetManageVars(); }