Ejemplo n.º 1
0
        protected override void Awake()
        {
            base.Awake();
            SetAnimEnabled(false);

            // make sure we have initialized static members
            if (pieceVars == null)
            {
                pieceVars   = Globals.pieceVars;
                pieceParent = new GameObject("__PieceParent__").transform;
                pFactory    = SjParticleFactory.instance;
            }
            spriteTrans  = spriteRen.GetComponent <Transform>();
            color        = PieceColor.Blue;
            align        = Alignment.Horizontal;
            gridPos      = -1;
            trans.parent = pieceParent;
        }
Ejemplo n.º 2
0
 void Awake()
 {
     instance = this;
 }