示例#1
0
 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> ();
 }
示例#2
0
        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);
        }
示例#3
0
 void Start()
 {
     this.SC    = GameObject.FindGameObjectWithTag("ScenesController").GetComponent <ScenesController> ();
     this.Model = GameObject.Find("BeginModel").GetComponent <BeginModel> ();
     Messenger.AddListener(ScenesController.SCENE_LOADED, FindLinks);
 }