Exemple #1
0
    GameObject _canvas; //游戏界面的画布

    // Use this for initialization
    void Start()
    {
        _my_Camera = Camera.main;
        _text      = (GameObject)StaticParameter.LoadObject("Other", "Text");
        _canvas    = GameObject.FindWithTag("Canvas");
        //判断变量是否为空
        StaticParameter.JudgeNull("_canvas", _canvas);
    }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        _scarf = transform.GetComponent <TrailRenderer>();
        StaticParameter.JudgeNull("围巾", _scarf);

        _distance  = 0.4f;
        _move_Time = 0.08f;

        _time    = 0;
        _go_Mark = 2;

        _start_Position = transform.localPosition;
        Base_Num        = 1;
    }
    void Start()
    {
        _default_Position      = transform.localPosition;
        _default_Rotation      = transform.localEulerAngles;
        Ice.Is_Jump_Before     = false;
        Ice.IsOnIce            = false;
        WideWallColliderBefore = null;
        _nature = HumanManager.Nature;
        _human  = _nature.Human_Script;
        ItemColliderManager skill_Manager = _human.transform.GetComponentInChildren <ItemColliderManager>();

        StaticParameter.JudgeNull("_human", _human);
        StaticParameter.JudgeNull("skill_Manager", skill_Manager);

        _item_Collider = skill_Manager.gameObject;
        _item_Collider.SetActive(false);

        _effect = (GameObject)StaticParameter.LoadObject("GameEffect", "effect");
        _protect_Broke_Mobel = (GameObject)StaticParameter.LoadObject("Other", "ProtectBroke");
    }