void Start() { this.SC = GameObject.FindGameObjectWithTag("ScenesController").GetComponent <ScenesController> (); this.graphicManipulators = GameObject.FindGameObjectWithTag("GraphicManipulators"); this.BeginModel = GameObject.FindGameObjectWithTag("Game").GetComponentInChildren <BeginModel> (); this.GPC = GameObject.Find("GamePlayController").GetComponent <GamePlayController> (); }
static void Main(string[] args) { var beginModel = new BeginModel() { Name = "naroJay", testValue = 10 }; Mapper.Initialize(test => { test.CreateMap <BeginModel, EndModel>(); }); EndModel end = Mapper.Map <EndModel>(beginModel); Console.WriteLine(end.testValue); }
void Start() { this.SC = GameObject.FindGameObjectWithTag("ScenesController").GetComponent <ScenesController> (); this.Model = GameObject.Find("BeginModel").GetComponent <BeginModel> (); Messenger.AddListener(ScenesController.SCENE_LOADED, FindLinks); }