Esempio n. 1
0
    public override void Init(IBaseObject ibaseObject)
    {
        base.Init(ibaseObject);
        this.m_logicHeroObject = ibaseObject as IHeroObject;

        Debug.Log("hero view init");

        //for test
        GameObject skin = GameObject.CreatePrimitive(PrimitiveType.Cube);

        this.m_transform            = skin.transform;
        this.m_transform.position   = m_logicHeroObject.GetPosition();
        this.m_transform.rotation   = Quaternion.Euler(m_logicHeroObject.GetRotation());
        this.m_transform.localScale = m_logicHeroObject.GetScale();
    }
Esempio n. 2
0
 public override void Init(IBaseObject iBaseObject)
 {
     base.Init(iBaseObject);
     this.m_ViewHeroObject = iBaseObject as IHeroObject;
 }
Esempio n. 3
0
 public void Init(IHeroObject iHeroObject)
 {
     this.m_ViewHeroObject = iHeroObject;
     this.m_ViewHeroObject.Init(this);
 }