Example #1
0
 protected override void Awake()
 {
     base.Awake();
     rend    = GetComponent <Renderer>();
     animScr = GetComponent <CardInHandAnimation>();
     apprn   = GetComponent <BaseObjectAppearance>();
 }
 protected override void Awake()
 {
     base.Awake();
     table             = FindObjectOfType <Table>();
     handPlane         = FindObjectOfType <HandPlane>();
     root              = transform.parent.GetComponent <Transform>();
     rend              = GetComponent <Renderer>();
     dndm              = FindObjectOfType <DragAndDropManager>();
     animScr           = GetComponent <BaseObjectAnimation>();
     apprn             = GetComponent <BaseObjectAppearance>();
     handPlaneCollider = GameObject.Find("HandPlane").GetComponent <Collider>();
     coll              = GetComponent <Collider>();
 }