Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        player_visible = this.transform.Find("Player_Target").gameObject;
        GM_visible     = this.transform.Find("GM_Target").gameObject;

        player_tracker = player_visible.GetComponent <DefaultTrackableEventHandler>();
        GM_tracker     = GM_visible.GetComponent <DefaultTrackableEventHandler>();

        manager = GameObject.Find("GameManager").GetComponent <GameManagement>();

        GameObject_to_show = gameObject.transform.Find("GOs to show").gameObject;
        GO_to_show_trans   = GameObject_to_show.GetComponent <MatchTransform>();

        GameObject_to_show.SetActive(false);
    }
Пример #2
0
 private void OnEnable()
 {
     mTarget = target as MatchTransform;
     //mTarget = serializedObject.targetObject as MatchTransform;
     //_matchScale = serializedObject.FindProperty("matchScale").boolValue;
 }