示例#1
0
 private void Start()
 {
     model       = GetComponent <Model>();
     view        = GameObject.Find("ViewManagment").GetComponent <View>();
     animations  = GameObject.Find("AniamtionManagement").GetComponent <AnimationsMangemetn>();
     placeDomina = GameObject.FindWithTag("Player").GetComponent <PlaceDomina>();
 }
 private void Awake()
 {
     domina         = GetComponent <DominaAttribute>();
     humenAttribute = GameObject.FindWithTag("Player").GetComponent <HumenAttributeManage>();
     placeDomina    = GameObject.FindWithTag("Player").GetComponent <PlaceDomina>();
     view           = GameObject.Find("ViewManagment").GetComponent <ExtraMessageView>();
     rigidbody      = GetComponent <Rigidbody>();
     player         = GameObject.FindWithTag("Player").GetComponent <Transform>();
 }
 public void Start()
 {
     _rigidbody   = GetComponent <Rigidbody>();
     extraMessage = GameObject.Find("ViewManagment").GetComponent <ExtraMessageView>();
     placeDomina  = GameObject.FindWithTag("Player").GetComponent <PlaceDomina>();
 }