예제 #1
0
    private GameObject _copy_Effect;//光圈特效的副本
    // Use this for initialization
    //void Start()
    //{
    //    _red = transform.GetChild(0);
    //    _blue = transform.GetChild(1);
    //    _ball = transform.GetChild(2);
    //    _red_Vector3 = new Vector3(-1f, 1, 0);
    //    _blue_Vector3 = new Vector3(1f, 1, 0);
    //    _copy_Effect = StaticParameter.ItemEffect(transform);
    //}

    public void OnEnable()
    {
        _red          = transform.GetChild(0);
        _blue         = transform.GetChild(1);
        _ball         = transform.GetChild(2);
        _red_Vector3  = new Vector3(-1f, 1, 0);
        _blue_Vector3 = new Vector3(1f, 1, 0);
        _copy_Effect  = StaticParameter.ItemEffect(transform);
    }
예제 #2
0
    private GameObject _copy_Effect; //光圈特效的副本
                                     // Use this for initialization
    //void Start()
    //{
    //    Initialize();
    //    //   GameObject effect_Mobel = (GameObject)StaticParameter.LoadObject("Other", "effect");
    //    //GameObject copy = Instantiate(effect_Mobel);
    //    //copy.transform.position = transform.position;
    //    //   copy.transform.localScale = Vector3.one*1.3f;
    //    //   copy.transform.eulerAngles = Vector3.zero;
    //    _copy_Effect = StaticParameter.ItemEffect(transform);

    //}
    public void OnEnable()
    {
        Initialize();
        _copy_Effect = StaticParameter.ItemEffect(transform);
    }